//
//  UserManager.h
//  MiAiApp
//
//  Created by 徐阳 on 2017/5/22.
//  Copyright © 2017年 徐阳. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfo.h"

#define kUserInfo [UserManager sharedUserManager].userInfo
#define kToken [[UserManager sharedUserManager] getToken]
#define kIsTourst  (kToken.length == 0)
/*
 包含用户相关服务
 */
@interface UserManager : NSObject
//单例
+ (instancetype)sharedUserManager;
-(void)saveUserInfo:(NSDictionary *)userInfo;
//当前用户信息
@property (nonatomic, strong)UserInfo *userInfo;
-(NSString *)getToken;
-(void)removeUserData;

-(void)getUserInfo;
@end
